<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<canvas id="mycanvas02" width="800" height="600" style="border: solid 2px firebrick;"></canvas>
		
		
		<script type="text/javascript">
			
			
		// var canvase = document.getElementById("mycanvas02")
		// var ctx = canvase.getContext('2d')
		
		// class PhObject{
		// 	this.quality = 100    //  质量
		// 	this.vertexs = []	  //  顺时针记录物体的顶点
		// 	this.velocity = {x:0, y:0}
		// 	this.rebound = 1      // 反弹系数
		// 	this.rotationAxis = {x:0, y:0}
		// }
		
		
		
		
		
		
		
		
		
		// function ReDraw(){
		// 	requestAnimationFrame(ReDraw)
		// }
		// requestAnimationFrame(ReDraw)
		
		
		let map = new Map()
		
		map.set(4, '4txt')
		map.set(1, "1text")
		map.set(2, "2te")
		map.set(3, "3txt")

		
		
		const sortarr = [...map].sort((a, b)=>a[0]-b[0]).map(a=>a[1])
		
		console.log(sortarr)
			
			
		</script>
		
	</body>
</html>